<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>attribute - 04</title>
  <link href="favicon.ico" rel="shortcut icon">
  <script src="../../js/vue.js"></script>
  <style>
    .demo {
      font-family: sans-serif;
      border: 1px solid #eee;
      border-radius: 2px;
      padding: 20px 30px;
      margin-top: 1em;
      margin-bottom: 40px;
      user-select: none;
      overflow-x: auto;
    }
  </style>
</head>

<body>
  <div id="bind-attribute" class="demo">
    <span v-bind:title="message">
      鼠标悬停几秒钟查看此处动态绑定的提示信息！
      <br>
      Hover your mouse over me for a few seconds to see my dynamically-bound
    title!
    </span>
  </div>

  <script>
    const AttributeBinding = {
      data() {
        return {
          message: 'You loaded this page on ' + new Date().toLocaleString()
        }
      }
    }

    Vue.createApp(AttributeBinding).mount('#bind-attribute')
  </script>
</body>

</html>